# -*- coding: utf-8 -*-
from Page.financingplatformloginPage import financingplatformloginPage
import time
class financingplatformlogin():
    def __init__(self,driver):
        self.driver=driver
        self.financingplatformloginPage=financingplatformloginPage(self,driver)
    def financingplatformlogin(self,LoginName,Password):
        handle2 = self.driver.current_window_handle
        print('登陆前'+handle2)
        self.financingplatformloginPage.inpLoginName().click()
        time.sleep(1)
        self.financingplatformloginPage.inpLoginName().send_keys(LoginName)
        time.sleep(1)
        self.financingplatformloginPage.inpPassword().click()
        time.sleep(1)
        self.financingplatformloginPage.inpPassword().send_keys(Password)
        time.sleep(1)
        self.financingplatformloginPage.btnSubmit().click()
        time.sleep(2)
